<?php
namespace Admin\Controller;
use Common\Controller\AdminBaseController;

/**
 * 后台首页控制器
 */
class PageController extends AdminBaseController{

	/**
	 * 首页
	 */
	public function index(){

		$total_page = 8;

		$data = D('Page')->index($total_page);

		$this->assign($data);

		$this->display(); // 输出模板
	}


	/**
	 * 移除页面
	 */
	public function removePage(){

		$data = D('Page')->removePage();

		$this->ajaxReturn($data);

	}

	/**
	 * 复制页面
	 */
	public function copyPage(){

		$data = D('Page')->copyPage();

		$this->ajaxReturn($data);
	}

}
